#ifndef __CPPTUTORSOCKETCLIENT_H__
#define __CPPTUTORSOCKETCLIENT_H__

#include "cppTutorSocket.h"
#include "cppTutorGlobals.h"

#ifdef WIN32
//winsock header file
#else
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <netdb.h>
#include <stdio.h>
#endif

//#ifdef SOCKET_UDP
class CcppTutorSocketClient
{
    public:
        CcppTutorSocketClient ();
       ~CcppTutorSocketClient ();
       
        void error(const char *msg);
        int udp_client (int argc1, char *argv1[]);
};
//#endif //SOCKET_UDP

//#ifdef SOCKET_TCP
class ClientSocket : private Socket
{
    public:
        ClientSocket ( std::string host, int port );
        virtual ~ClientSocket(){};

        const ClientSocket& operator << ( const std::string& ) const;
        const ClientSocket& operator >> ( std::string& ) const;
};
//#endif //SOCKET_TCP

#endif //__CPPTUTORSOCKETCLIENT_H__

